package com.mobilous.client.MainScreen;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.TextBox;

public class InvitePeople extends DialogBox {

	public InvitePeople() {
		setHTML("Invite People");
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		setWidget(absolutePanel);
		absolutePanel.setSize("284px", "216px");
		
		Label lblEmailAddress = new Label("Email Address");
		absolutePanel.add(lblEmailAddress, 10, 10);
		
		TextBox textBox = new TextBox();
		absolutePanel.add(textBox, 10, 34);
		textBox.setSize("246px", "18px");
		
		Label lblGroup = new Label("Group");
		absolutePanel.add(lblGroup, 10, 70);
		
		ListBox comboBox = new ListBox();
		comboBox.addItem("Tester");
		comboBox.addItem("Developer");
		comboBox.addItem("Family");
		absolutePanel.add(comboBox, 10, 94);
		comboBox.setSize("256px", "22px");
		
		Button btnSendInvitationEmail = new Button("Send Invitation Email");
		absolutePanel.add(btnSendInvitationEmail, 90, 176);
		btnSendInvitationEmail.setSize("184px", "30px");
		
		Button btnCancel = new Button("Cancel");
		absolutePanel.add(btnCancel, 10, 176);
		btnCancel.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				hide();
			}
		});
		
	}
}
